#include "Polygon.h"
void Polygon::setValues(int a, int b)
{
	width = a;
	height = b;
}
int Rectangle::Area()
{
	return width * height;
}
int Triangle::Area()
{
	return width * height / 2;
}
#include <iostream>
using namespace std;
int main()
{
	Rectangle R;
	Triangle T;
	R.setValues(4, 5);
	T.setValues(4, 5);
	cout << R.Area() << "\n";
	cout << T.Area() << "\n";
	return 0;
}